package com.zoweunion.mechanic.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.*;

import java.util.Date;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Data
@ToString
@Builder(toBuilder=true)
public class DriverEntity implements java.io.Serializable{

    private String id;

    @Excel(name = "司机姓名",needMerge = true)
    private String user_name;

    @Excel(name = "司机电话",needMerge = true)
    private String mobile_phone;

    @Excel(name = "设备名称",needMerge = true)
    private String advice_name;

    @Excel(name = "车辆品牌",needMerge = true)
    private String brand;

    @Excel(name = "制造编号",needMerge = true)
    private String manufacturing_num;

    @Excel(name = "车辆型号",needMerge = true)
    private String model;

    @Excel(name = "设备号",needMerge = true)
    private String things_id;

    @Excel(name = "购机时间",needMerge = true)
    private String buy_time;

    @Excel(name = "监控状态",needMerge = true,replace = {"打开_1","关闭_2"})
    private int monitor_state;

    @ExcelCollection(name = "锁车记录")
    private List<LockCarEntity> lockCarEntityList;
}
